package com.ruoyi.production.service.carton;

import java.util.List;
import com.ruoyi.production.domain.carton.CartonPurchase;

/**
 * 纸箱购买信息Service接口
 *
 * @author ruoyi
 * @date 2021-07-10
 */
public interface ICartonPurchaseService
{
    /**
     * 查询纸箱购买信息
     *
     * @param cartonPurchaseId 纸箱购买信息ID
     * @return 纸箱购买信息
     */
    public CartonPurchase selectCartonPurchaseById(Long cartonPurchaseId);

    /**
     * 查询纸箱购买信息列表
     *
     * @param cartonPurchase 纸箱购买信息
     * @return 纸箱购买信息集合
     */
    public List<CartonPurchase> selectCartonPurchaseList(CartonPurchase cartonPurchase);

    /**
     * 新增纸箱购买信息
     *
     * @param cartonPurchase 纸箱购买信息
     * @return 结果
     */
    public int insertCartonPurchase(CartonPurchase cartonPurchase);

    /**
     * 修改纸箱购买信息
     *
     * @param cartonPurchase 纸箱购买信息
     * @return 结果
     */
    public int updateCartonPurchase(CartonPurchase cartonPurchase);

    /**
     * 批量删除纸箱购买信息
     *
     * @param cartonPurchaseIds 需要删除的纸箱购买信息ID
     * @return 结果
     */
    public int deleteCartonPurchaseByIds(Long[] cartonPurchaseIds);

    /**
     * 删除纸箱购买信息信息
     *
     * @param cartonPurchaseId 纸箱购买信息ID
     * @return 结果
     */
    public int deleteCartonPurchaseById(Long cartonPurchaseId);


    /**
     * 插入纸箱购买表更新穴盘量表
     * @param cartonPurchase
     * @return
     */
    public int insertPurchaseUpdateAmount(CartonPurchase cartonPurchase);
}
